package com.ktjy.ch15.service;

import com.ktjy.ch15.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleService {
    public List<SysRole> findAll() ;

    public boolean save(SysRole sysRole);

    public SysRole findById(Long id);

    public boolean update(SysRole sysRole);

    public boolean delete(Long id);

    public SysRole findByCode(@Param("code") String code);

    public boolean count(Long roleId);
}
